package com.rpc;

import java.util.HashMap;
import java.util.Map;

public class Register {

    private static Map<String, Object> map = new HashMap<>();

    private Register(){}


    public static void register(String method, Object service){
        map.put(method, service);
    }

    public static  Object getService(String methodName){
        Object object = map.get(methodName);
        return object;
    }
}
